﻿using System;
using System.Collections.Generic;
using System.Text;

namespace CNVP.Config
{
    public class LicenseConfig
    {
        /// <summary>
        /// 注册序号
        /// </summary>
        public static string License = BaseConfig.GetConfigValue("License");
        /// <summary>
        /// 读取授权信息
        /// </summary>
        public static String activationCode = ActivationCode.GetActivationCode();
        /// <summary>
        /// 更新时间
        /// </summary>
        public static string PostTime = BaseConfig.GetConfigValue("PostTime");
        /// <summary>
        /// 产品名称
        /// </summary>
        public static string ProductName = BaseConfig.GetConfigValue("ProductName");
        /// <summary>
        /// 产品版本
        /// </summary>
        public static string ProductVersion = BaseConfig.GetConfigValue("ProductVersion");
        /// <summary>
        /// 刷新缓存
        /// </summary>
        public static void RefurbishCatch()
        {
            License = BaseConfig.GetCatchParam("License");
            PostTime = BaseConfig.GetCatchParam("PostTime");
            ProductName = BaseConfig.GetConfigValue("ProductName");
            ProductVersion = BaseConfig.GetConfigValue("ProductVersion");
        }
    }
}